package lib.bone.flow.service;

import lib.bone.common.core.domain.ResponseDTO;
import lib.bone.flow.domain.entity.FlowAttach;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Optional;

public interface FlowAttachService {
    /**
     * 根据流程ID删除
     * @param flowWorkId
     */
    void deleteByFlow(String flowWorkId);
    /**
     * 新建
     */
    FlowAttach saveOne(FlowAttach attach);
    /**
     * 查询
     */
    Optional<FlowAttach> findById(String id);
    /**
     * 列表查询
     */
    public ResponseDTO getList(Pageable pageable, Example<FlowAttach> example);
}
